import request from '@utils/request/index'
export function upload(data, opt = {}) {
  return request({
    url: '/file/upload',
    method: 'post',
    data,
    ...opt
  })
}

export function getImg(params, opt = {}) {
  return request({
    url: '/file/download',
    params,
    responseType: 'blob',
    ...opt
  })
}
/* {
  keys:['key']
} */
export function deleteFile(data, opt = {}) {
  return request({
    url: '/file/delete',
    method: 'post',
    data,
    ...opt
  })
}